package com.threadmethod.productdata;

/**
 * @PackageName:com.threadmethod.productdata
 * @ClassName:Test
 * @Description: 测试一生产，一消费的情况
 * @Author: zhangxiaoyu
 * @date 2021/1/18 13:48
 */
public class Test {

    public static void main(String[] args){
         ValueOP valueOP = new ValueOP();

         ProducerThread p = new ProducerThread(valueOP);
         ConsumerThread c = new ConsumerThread(valueOP);

         p.start();
         c.start();

         //生产与消费交替运行
    }

}
